package com.wanmait.wanmarecruit.util;

import javax.servlet.http.HttpServletRequest;

public class SystemContext {
    private static ThreadLocal<HttpServletRequest> requestThreadLocal = new ThreadLocal<>();

    public static void setRequest(HttpServletRequest request)
    {
        requestThreadLocal.set(request);
    }

    public static HttpServletRequest getRequest()
    {
        return requestThreadLocal.get();
    }

    public static void clear()
    {
        requestThreadLocal.remove();
    }
}
